

#include <iostream>
void xprint()
{
    std::cout<<std::endl;
}
//不定参数
template<typename T,typename ...Args>
void xprint(const T& v,Args&& ...args)
{
    std::cout<<v;
    if((sizeof ...(args))>0)
    {
        xprint(std::forward<Args>(args)...);
    }
    else
    {
        xprint();
    }
}

int main()
{
    xprint(111,222,333);
    xprint();
    xprint("hello world");
    xprint("111","222","333");
    return 0;
}